xl: Break out flush_stream
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 3 Jul 2015 11:36:20 +0000 (12:36 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 3 Jul 2015 13:43:11 +0000 (14:43 +0100)
commit58072f13da55ee59a1543783cc9c9015fcb9be70
treee6c769a30ffc80c0b08d1527e9eb65fbf76a7218
parent9379af08ccc05d61f4ca31c7b98231b3b8f56fb3
xl: Break out flush_stream

We are going to want to reuse this.  Adjust the code slightly to
detect right away call sites that pass something other than stdout or
stderr.

No resulting functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New patch in this version of the mini-series
tools/libxl/xl_cmdimpl.c